Get Magic Eden Collections
Get MagicEden NFT Collections with their Statistics
Networks Supported:
- solana-mainnet
Endpoint
GET
/api/v0/nfts/<NETWORK>/get-magic-eden-collections/<YOUR_API_KEY>?offset=OFFSET&limit=LIMIT&price_stats=PRICE_STATS_BOOL
Test API Key
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IkZJMHljR2kwYWhYRFplQmtleEFFZm1jVzZ1NTMiLCJpYXQiOjE2NzM1OTQ1NjF9.CI2QEG7Ek6juzthOuV4NAstYKPHerzRXRUPpA1B9sb4
Parameter | Type | Description |
---|---|---|
price_stats | boolean | If set to true, fetches the Magic Eden price stats for the collection |
NOTE:
Adding the
price_stats
parameter will make the API slow
Code Sample
index.js
const axios = require("axios");
const apiUrl =
"https://app.conciselabs.io/api/v0/nfts/solana-mainnet/get-magic-eden-collections/<YOUR_API_KEY>?offset=0&limit=200&price_stats=true";
const getCollections = async () => {
const { data } = await axios.get(apiUrl);
console.log("Collections: ", data);
};
getCollections();
Response
{
"collections": [
{
"symbol": "the_anomalics",
"name": "The Anomalics",
"description": "The Anomalics is a collection containing 153 NFTs. Peaking behind the scenes you’ll find holders enjoying exclusive access to the Anomalics Society.",
"image": "https://nftstorage.link/ipfs/bafybeifbtjia5utlt4uh3herarhu622vxcw7bqdccnalbnkeojjn3pr6vu/12.png",
"twitter": "",
"discord": "",
"website": "",
"categories": ["pfps"],
"isBadged": false,
"stats": {
"symbol": "the_anomalics",
"floorPrice": 90000000,
"listedCount": 11,
"avgPrice24hr": 2885557894.736841,
"volumeAll": 219302399999.99994
}
},
{...},
{...}
]
}